const mongoose = require('mongoose');

module.exports = function() {
    const db = mongoose.connect('mongodb://localhost:27017/aiserver');

    require('./task.js');
    require('./user.js');
    require('./style.js');
    return db;
}